package tgc.edu.exam.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fasterxml.jackson.databind.ObjectMapper;
//@Controller
@RequestMapping(value="/role")
public class RoleController {
	
	@RequestMapping(value="/manage")
	public void manage() {
		
	}
	@RequestMapping(value="/data")
	@ResponseBody
	public Object data() {
		String str="{\r\n" + 
				"  \"code\": 0,\r\n" + 
				"  \"msg\": \"ok\",\r\n" + 
				"  \"data\": [\r\n" + 
				"    {\r\n" + 
				"      \"id\": 1,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": -1\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 2,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 1\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 3,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 1\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 4,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 1\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 5,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": -1\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 6,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 5\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 7,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 5\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 8,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 6\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 9,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 6\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 10,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 9\r\n" + 
				"    },\r\n" + 
				"    {\r\n" + 
				"      \"id\": 11,\r\n" + 
				"      \"name\": \"xx\",\r\n" + 
				"      \"sex\": \"male\",\r\n" + 
				"      \"pid\": 9\r\n" + 
				"    }\r\n" + 
				"  ],\r\n" + 
				"  \"count\": 11\r\n" + 
				"}";
		
		return str;
	}
}
